/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2013/04/30
* File: Texture2D.h
* Blog: http://www.cnblogs.com/zengqh/
**/

#pragma once

#include "Texture.h"
#include <math/vector2.h>

namespace HY
{
class Image;
class Texture2D : public Texture
{
public:
	virtual void bind() = 0;
	virtual void unbind() = 0;
	virtual bool load(Image* image) = 0;

	virtual const IntVector2& getSize() const
	{
		return size_;
	}

protected:
	Texture2D() : Texture(TypeTexture2D)
	{
		
	}

protected:
	IntVector2	size_;
};
}